package com.example.mapper;

import com.example.pojo.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface LoginMapper {
//    LoginInfo login(Emp emp);

    @Select("select * from emp where username = #{username} and password = #{password}")
    Emp login(@Param("username") String username, @Param("password") String password);
}
